From e3014b48cd3309117ba8f4a3b19f0a3de6398c7a Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Sun, 29 Sep 2002 05:59:10 +0000 Subject: [PATCH] (sgml-guess-indent): Handle tabs correctly. --- lisp/textmodes/sgml-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index bad9dcc4a34..f5bd3236412 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el @@ -1288,7 +1288,7 @@ Add this to `sgml-mode-hook' for convenience." (if (re-search-forward "^\\([ \t]+\\)<" 500 'noerror) (progn (set (make-local-variable 'sgml-basic-offset) - (length (match-string 1))) + (1- (current-column))) (message "Guessed sgml-basic-offset = %d" sgml-basic-offset) )))) -- 2.30.2